import json
train_status_ref = './bladder1204_train.json'
test_status_ref = './bladder_test.json'
val_status_ref = './bladder_val.json'
connect_list = []
with open(train_status_ref, 'r', encoding='utf-8') as f:
    data = json.load(f)
for info in data:
    connect_list.append(info)
with open(test_status_ref, 'r', encoding='utf-8') as f:
    data = json.load(f)
for info in data:
    connect_list.append(info)
with open(val_status_ref, 'r', encoding='utf-8') as f:
    data = json.load(f)
for info in data:
    connect_list.append(info)
with open("bladder" + str(len(connect_list)) + '.json', "w") as json_file:
    json.dump(connect_list, json_file)
# print(len(connect_list))
